package com.bit.springboot_1;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test1")
public class Test_PassingParameters {

    @RequestMapping("/one")
    public  int one(int first){

        return first;
    }

    @RequestMapping("/two")
    public String two(String a,String b){

        return a+b;
    }

    @RequestMapping("/test_3")
    public String test_3(Student s){

        return s.toString();
    }

    @RequestMapping("test_4")
    public String test_4(String[]s){
        String s1="";

        for (String ss:
             s) {
        s1=s1+ss;
        }
        return s1 ;
    }

}
